@if "%1"=="" @set outdir=D:\leaflike\OpenCV2.1(x64)

::create directory
mkdir bin(x64)
mkdir lib(x64)
mkdir release(x64)

::copy the following dlls to bin(x64) directory
@xcopy %outdir%\bin\cv210.dll bin(x64) /R /Y /E
@xcopy %outdir%\bin\cxcore210.dll bin(x64) /R /Y /E
@xcopy %outdir%\bin\highgui210.dll bin(x64) /R /Y /E
@xcopy %outdir%\bin\ml210.dll bin(x64) /R /Y /E
@xcopy lib(x64)\dllexport.dll bin(x64) /R /Y /E

::copy the following libs to lib(x64) directory
@xcopy %outdir%\lib\cv210.lib lib(x64) /R /Y /E
@xcopy %outdir%\lib\cxcore210.lib lib(x64) /R /Y /E
@xcopy %outdir%\lib\highgui210.lib lib(x64) /R /Y /E
@xcopy %outdir%\lib\ml210.lib lib(x64) /R /Y /E